package first.endtoend
/*
@author: Olfa
this class to store idModel of the instance to update
 and code related to this update
 An idModel is the id of a Family, a product or an Aid
 */

class Notification
{

    Long idModel
    int code
    static belongsTo = [agent: Agent]
    String modelName
    String description

    Date dateCreated

    static constraints = {

        modelName inList: [Family.getSimpleName(), Product.getSimpleName(), Aid.getSimpleName()]
        agent(nullable: true)
    }
}
